<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			for(var a=0;a<=20;a++){
				for(var b=0;b<=100/3;b++){
					var c=100-a-b;
					if(5*a+3*b+c/3==100)
						document.write(a+","+b+","+c+"<br/>");
				}
			}
			
			for(var i=1;i<=9;i++){
				for(var j=1;j<=9;j++){
					for(var k=1;k<=9;k++){
						var x1=i,x2=j*10+7,x3=k*100+48;
						var avg=(x1+x3)/2;
						if(avg==x2){
							document.write(x1+","+x2+","+x3+"<br/>");
						}
					}
				}
			}
		</script>
	</body>
</html>
